package Demo3;

public  class Athlete extends People{
    private String classes;

    public String getClasses() {
        return classes;
    }

    public Athlete(String id, String name, String gendar, String age, String classes) {
        super(id, name, gendar, age);
        this.classes = classes;
    }

    public void setClasses(String classes) {
        this.classes = classes;
    }

    @Override
    public void eat() {
        System.out.println("吃营养餐");

    }
}


